package com.qujia.station.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * 油机信息
 * */
@Data
public class OilEngineDto implements Serializable{

    /**
     * 油机数据记录id
     */
    private Long id;

    /**
     * 通道
     */
    @ApiModelProperty(value = "通道",example = "")
    private String passageway;




    @ApiModelProperty(value = "列表",example = "")
    private List<Long> enterpriseIdListForAuthor;
    /**
     * 卡号
     */
    @ApiModelProperty(value = "卡号",example = "6850")
    private String cardNum;

    /**
     * 订单号,油机订单流水号，不是pay_order表订单号
     */
    @ApiModelProperty(value = "订单号",example = "6850")
    private String orderNum;

    /**
     * 加油员id
     */
    @ApiModelProperty(value = "加油员id",example = "1001")
    private String oilPersonnelId;

    /**
     * 油枪
     */
    @ApiModelProperty(value = "油枪",example = "1")
    private String oilGun;

    /**
     * 油品编号，注意不是oil_id
     */
    @ApiModelProperty(value = "油品编号",example = "1001")
    private String oilNameNum;

    /**
     * 油品
     */
    @ApiModelProperty(value = "油品",example = "#92")
    private String oilName;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价",example = "8.39")
    private BigDecimal oilPrice;

    /**
     * 总价
     */
    @ApiModelProperty(value = "总价",example = "25.33")
    private BigDecimal totalPrice;

    /**
     * 卡余额
     */
    @ApiModelProperty(value = "卡余额",example = "3.79")
    private BigDecimal balanceAmount;

    /**
     * 数量,加油升数
     */
    @ApiModelProperty(value = "加油量",example = "3.79")
    private Double orderLiters;

    /**
     * 开始泵码，油机加油前升数
     */
    @ApiModelProperty(value = "开始泵码（L/kg）",example = "128631.94")
    private Double startFlowMeter;

    /**
     * 结束泵码，油机加油后升数
     */
    @ApiModelProperty(value = "结束泵码（L/kg）",example = "128631.94")
    private Double endFlowMeter;

    /**
     * 油企id
     */
    @ApiModelProperty(value = "油企id",example = "174")
    private Long enterpriseId;

    /**
     * 油企名
     */
    @ApiModelProperty(value = "油企名称",example = "xxx油企")
    private String enterpriseName;

    /**
     * 油站id
     */
    @ApiModelProperty(value = "油站id",example = "212")
    private Long stationId;

    /**
     * 油站名
     */
    @ApiModelProperty(value = "油站名",example = "xxx油站")
    private String stationName;

    /**
     * 订单时间
     */
    @ApiModelProperty(value = "创建时间",example = "2023-10-25 10:10:10")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /**
     * 逻辑删除标志，0 表示未删除，1 表示已删除
     */
    @ApiModelProperty(value = "是否删除 0 表示未删除，1 表示已删除",example = "0")
    private String isDeleted;

    /** 开始时间 */
    @ApiModelProperty(value = "开始时间",example = "2023-10-25 10:10:10")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String beginTime;

    /** 结束时间 */
    @ApiModelProperty(value = "结束时间",example = "2023-10-25 10:10:10")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

}
